package net.magicalcloud.magicalcloud.model;

import net.magicalcloud.magicalcloud.entity.Files;
import net.magicalcloud.magicalcloud.entity.User;
import net.magicalcloud.magicalcloud.listener.CloudListener;

import java.util.List;
import java.util.Map;

import okhttp3.RequestBody;

/** 文件model接口
 * Created by Pei on 2018/6/7.
 */

public interface IFileModel {
    /**
     * 显示回收站
     * zhy 2018-6-8
     */
    void showRecycle(int userId, CloudListener<List<Files>> listener);

    /**
     * 模糊查询 yyc
     */

    void vagueSearchFile(String value,int userId,CloudListener<List<Files>> listener);

    /**
     * 查询某个文件夹下面的子文件 ph
     */
    void searchSubfile(String id,CloudListener<List<Files>> listener);

    /*
    * 上传文件
    * */
    void uploadFile(Map<String,String> options, Map<String, RequestBody> params, CloudListener<Files> listener);
}
